package com.example.demo.repository;


import com.example.demo.entity.Schedule;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface ScheduleRepository extends JpaRepository <Schedule,Integer> {
    @Query(value = "select * from schedule where activity_id = %?1 ;",nativeQuery = true)
    List <Schedule> findAllByActivity_id (Integer activity_id);
}
